.class public final Lorg/zeam/SelectorDrawable;
.super Landroid/graphics/drawable/StateListDrawable;
.source "SelectorDrawable.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;
    }
.end annotation


# direct methods
.method private constructor <init>(IIZ)V
    .locals 10
    .parameter "pressedColor"
    .parameter "focusedColor"
    .parameter "roundCorners"

    .prologue
    const/4 v6, 0x0

    const/4 v9, 0x1

    const/4 v8, 0x0

    .line 16
    invoke-direct {p0}, Landroid/graphics/drawable/StateListDrawable;-><init>()V

    .line 20
    new-instance v1, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;

    invoke-direct {v1, p0, p1, p3, v6}, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;-><init>(Lorg/zeam/SelectorDrawable;IZLorg/zeam/SelectorDrawable$SelectorShapeDrawable;)V

    .line 21
    .local v1, pressedSelectorShapeDrawable:Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;
    new-instance v0, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;

    invoke-direct {v0, p0, p2, p3, v6}, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;-><init>(Lorg/zeam/SelectorDrawable;IZLorg/zeam/SelectorDrawable$SelectorShapeDrawable;)V

    .line 22
    .local v0, focusedSelectorShapeDrawable:Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;
    new-instance v5, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;

    invoke-direct {v5, p0, v8, v6}, Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;-><init>(Lorg/zeam/SelectorDrawable;ILorg/zeam/SelectorDrawable$SelectorShapeDrawable;)V

    .line 24
    .local v5, transparentSelectorShapeDrawable:Lorg/zeam/SelectorDrawable$SelectorShapeDrawable;
    const v2, 0x101009c

    .line 25
    .local v2, stateFocused:I
    const v3, 0x10100a7

    .line 26
    .local v3, statePressed:I
    const v4, 0x101009d

    .line 28
    .local v4, stateWindowFocused:I
    new-array v6, v9, [I

    const v7, 0x10100a7

    aput v7, v6, v8

    invoke-virtual {p0, v6, v1}, Lorg/zeam/SelectorDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    .line 29
    new-array v6, v9, [I

    const v7, -0x101009c

    aput v7, v6, v8

    invoke-virtual {p0, v6, v5}, Lorg/zeam/SelectorDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    .line 30
    new-array v6, v9, [I

    const v7, 0x101009d

    aput v7, v6, v8

    invoke-virtual {p0, v6, v0}, Lorg/zeam/SelectorDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    .line 31
    new-array v6, v9, [I

    const v7, -0x101009d

    aput v7, v6, v8

    invoke-virtual {p0, v6, v5}, Lorg/zeam/SelectorDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    .line 32
    return-void
.end method

.method static createSelector(Landroid/content/Context;Z)Lorg/zeam/SelectorDrawable;
    .locals 3
    .parameter "context"
    .parameter "roundCorners"

    .prologue
    .line 36
    new-instance v0, Lorg/zeam/SelectorDrawable;

    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getSelectorPressedColorHex(Landroid/content/Context;)I

    move-result v1

    .line 37
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getSelectorFocusedColorHex(Landroid/content/Context;)I

    move-result v2

    .line 36
    invoke-direct {v0, v1, v2, p1}, Lorg/zeam/SelectorDrawable;-><init>(IIZ)V

    return-object v0
.end method
